package site.shader85.OICQBind;

import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import static site.shader85.OICQBind.BindingListener.unregisteredPlayers;

public class ChattingTimer extends BukkitRunnable{
	
	@Override
	public void run() {
		for(Player p:unregisteredPlayers.keySet()){
			for(String msg:BindPlugin.message){
				p.sendMessage(msg);
			}
			int i = unregisteredPlayers.get(p);
			unregisteredPlayers.put(p, i++);
			if(i>24)
				p.kickPlayer(BindPlugin.kickmessage);
		}
		for(Player p:BindPlugin.tempQQ.keySet()){
			if(p.isOnline()==false)
				BindPlugin.tempQQ.remove(p);
		}
	}
}
 